package com.cn.genericity.person;

/**
 * @author hels
 * @version 1.0
 * @date 2022/12/13 15:52
 */
public class Person implements Comparable<Person> {
    public int age;

    public Person(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    @Override
    public int compareTo(Person o) {
        return this.age - o.age;
    }
}
